const disciplineConsts = {
    'UNKNOWN'   : 0,

    'ZHAN_X'    : 1 ,
    'BAI_M'     : 2 ,
    'XIAN_Z'    : 3 ,
    'XUE_Z'     : 4 ,

    'QI_S'      : 5 ,
    'ZHAN_S'    : 6 ,
    'HEI_Q'     : 7 ,
    'JUE_Q'     : 8 ,

    'WU_SENG'   : 9 ,
    'LONG_Q'    : 10,
    'REN_Z'     : 11,
    'WU_SHI'    : 12,
    'SHAN_L'    : 13,

    'SHI_R'     : 14,
    'JI_G'      : 15,
    'WU_Z'      : 16,
    'HEI_M'     : 17,
    'ZHAO_H'    : 18,
    'CHI_M'     : 19,
}

const disciplineName = [
    [0 , '未知'],

    [1 , '占星'],
    [2 , '白魔'],
    [3 , '贤者'],
    [4 , '学者'],

    [5 , '骑士'],
    [6 , '战士'],
    [7 , '黑骑'],
    [8 , '绝枪'],

    [9 , '武僧'],
    [10, '龙骑'],
    [11, '忍者'],
    [12, '武士'],
    [13, '钐镰'],

    [14, '诗人'],
    [15, '机工'],
    [16, '舞者'],

    [17, '黑魔'],
    [18, '召唤'],
    [19, '赤魔'],
]

const sampleData = {
    "name": "sample",
    "index": 2,
    "data": [
        {
            "count": 1,
            "dungeon": "讨伐彷徨死灵！",
            "discipline": disciplineConsts.ZHAN_X,
            "completed": true,
            "description": "第一把导随，真希望每把都能遇到好队友\n（不需要的部分空着就行）",
            "image": "",
            "date": "2022-11-22T08:00:00.000Z"
        },
        {
            "count": 2,
            "dungeon": "讨伐彷徨死灵！",
            "discipline": disciplineConsts.BAI_M,
            "completed": true,
            "description": "第二把导随，真希望每把都能遇到好队友\n（日期和时间用文本型格式和日期型格式都可以哦甚至可以混着用也可以把时间空着）",
            "image": "",
            "date": "2022-11-21T16:00:00.000Z"
        },
        {
            "count": -1,
            "dungeon": "天幕魔导城最终决战",
            "discipline": disciplineConsts.ZHAN_X,
            "completed": false,
            "description": "未完成时场次会自动标记为-1,当然也可以自己改(也可以直接摆烂不记录)",
            "image": "",
            "date": "2022-11-23T02:38:38.422Z"
        }
    ]
}

const timeSetting = {
    NOW: '现在',
    TODAY: '今天',
    THIS_HOUR: '本小时',
    NEXT_HOUR: '下个小时',
    PRE_HOUR: '前一小时',
    PRE_PRE_HOUR: '前两小时'
}

export const DATA_SOURCE_LIST = 'dataSourceList'
export const DATA_SOURCE_PREFIX = 'dataSource:'
export const SETTING_PREFIX = 'setting:'
export const DisciplineName = JSON.parse(JSON.stringify(disciplineName))
export const DisciplineConsts = JSON.parse(JSON.stringify(disciplineConsts))
export const SampleData = JSON.parse(JSON.stringify(sampleData))
export const TIME_SETTING = JSON.parse(JSON.stringify(timeSetting))